package mblog.core.persist.entity;

import lombok.Data;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 三级市区信息
 */
@Data
@Entity
@Table(name = "mto_addresses")
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class AddressesPO implements Serializable{
    private static final long serialVersionUID = 2095804484017427923L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "parent_id")
    private String parentId;

    @Column(name = "name")
    private String name;

    @Column(name = "level")
    private Integer level;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "last_update_time")
    private Date lastUpdateTime;

    @Column(name = "stat")
    private Integer stat;

}
